package cn.demoxy.mapper;

import cn.demoxy.model.dto.DemoMenuDTO;
import cn.demoxy.model.entity.DemoMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @auther demo
 * @date 2022/5/20 9:33
 * 菜单表持久层
 */
@Mapper
public interface DemoMenuMapper extends BaseMapper<DemoMenu> {
    /**
     * 根据角色id获取对应菜单
     * @param roleId
     * @return
     */
    List<DemoMenu> getMenuByRoleId(String roleId);
}
